package com.hospital.doctor.mapper;


import com.auth0.jwt.interfaces.Claim;
import com.hospital.doctor.pojo.Patient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface PatientMapper {

    List<Patient> selectAll(Patient patient);

    Patient selectById(@Param("id") int id);

    int updateById(Patient patient);

    List<Patient> selectByName(@Param("pName") String pName);

    int updateOutTime(@Param("pId") int pId);

}
